package Application.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import Application.entity.Message;
import Application.service.MessageService;

@CrossOrigin	
@RestController
@RequestMapping("/Message")
public class MessageControl {

	@Resource
	private MessageService service;
	@GetMapping("/getMessage")
	public List<Message> findList(){
		return service.findList();
	}
	
}
